package com.tank.game.api;

import java.util.List;

/**
 * 游戏房间
 *
 * @author Zed
 */
public interface Room extends Destroy {

    /**
     * 玩家加入房间
     *
     * @param play {@link Play}
     */
    void join(Play play);

    /**
     * 获取玩家
     *
     * @return {@link Play}
     */
    List<Play> getPlays();

    /**
     * 踢出玩家
     *
     * @param play {@link Play}
     */
    void kickOutOfTheRoom(Play play);
}
